package cn.zxl.spring.holiday.job.service.impl;

import cn.zxl.spring.holiday.job.domain.DictType;
import cn.zxl.spring.holiday.job.mapper.DictTypeMapper;
import cn.zxl.spring.holiday.job.service.DictTypeService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * <p>
 * 字典类型表 服务实现类
 * </p>
 *
 * @author bofeifei
 * @since 2021-10-06
 */
@Service
public class DictTypeServiceImpl extends ServiceImpl<DictTypeMapper, DictType> implements DictTypeService {

    @Autowired
    private DictTypeMapper dictTypeMapper;

    @Override
    public DictType selectOneByType(String dictType) {
        return dictTypeMapper.selectOneByType(dictType);
    }

    @Override
    public List<DictType> selectByDictName() {
        return dictTypeMapper.selectByDictName();
    }
}
